﻿using System;
using BookiFramework.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BookiFramework.net45.Test.Security
{
    [TestClass]
    public class AESUnitTest: CryptoUnitTestBase<AESRijndaelCrypter>
    {
        public const string key = "12EstaClave34es56dificil489ssswf";
        public const string iv = "jesulink2537hAES";
        [TestMethod]
        public void AES_Test_cryp_text_using_bytes()
        {
            //Arrange
            var crypto = new AESRijndaelCrypter(key,iv);

            //Act
            TestCrypTextUsingBytes(crypto);
        }
        
        [TestMethod]
        public void AES_Test_cryp_text_using_Text()
        {
            //Arrange
            var crypto = new AESRijndaelCrypter(key, iv);
            //Act
            TestCrypTextUsingText(crypto);
        }
    }
}
